﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010AD RID: 4269
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneCastSkillCostMpCsReq : IMessage<SceneCastSkillCostMpCsReq>, IMessage, IEquatable<SceneCastSkillCostMpCsReq>, IDeepCloneable<SceneCastSkillCostMpCsReq>, IBufferMessage
	{
		// Token: 0x170035E9 RID: 13801
		// (get) Token: 0x0600BEC1 RID: 48833 RVA: 0x00202C61 File Offset: 0x00200E61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneCastSkillCostMpCsReq> Parser
		{
			get
			{
				return SceneCastSkillCostMpCsReq._parser;
			}
		}

		// Token: 0x170035EA RID: 13802
		// (get) Token: 0x0600BEC2 RID: 48834 RVA: 0x00202C68 File Offset: 0x00200E68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneCastSkillCostMpCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170035EB RID: 13803
		// (get) Token: 0x0600BEC3 RID: 48835 RVA: 0x00202C7A File Offset: 0x00200E7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneCastSkillCostMpCsReq.Descriptor;
			}
		}

		// Token: 0x0600BEC4 RID: 48836 RVA: 0x00202C81 File Offset: 0x00200E81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCostMpCsReq()
		{
		}

		// Token: 0x0600BEC5 RID: 48837 RVA: 0x00202C89 File Offset: 0x00200E89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCostMpCsReq(SceneCastSkillCostMpCsReq other) : this()
		{
			this.castEntityId_ = other.castEntityId_;
			this.attackedByEntityId_ = other.attackedByEntityId_;
			this.skillIndex_ = other.skillIndex_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BEC6 RID: 48838 RVA: 0x00202CC6 File Offset: 0x00200EC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCostMpCsReq Clone()
		{
			return new SceneCastSkillCostMpCsReq(this);
		}

		// Token: 0x170035EC RID: 13804
		// (get) Token: 0x0600BEC7 RID: 48839 RVA: 0x00202CCE File Offset: 0x00200ECE
		// (set) Token: 0x0600BEC8 RID: 48840 RVA: 0x00202CD6 File Offset: 0x00200ED6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x170035ED RID: 13805
		// (get) Token: 0x0600BEC9 RID: 48841 RVA: 0x00202CDF File Offset: 0x00200EDF
		// (set) Token: 0x0600BECA RID: 48842 RVA: 0x00202CE7 File Offset: 0x00200EE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AttackedByEntityId
		{
			get
			{
				return this.attackedByEntityId_;
			}
			set
			{
				this.attackedByEntityId_ = value;
			}
		}

		// Token: 0x170035EE RID: 13806
		// (get) Token: 0x0600BECB RID: 48843 RVA: 0x00202CF0 File Offset: 0x00200EF0
		// (set) Token: 0x0600BECC RID: 48844 RVA: 0x00202CF8 File Offset: 0x00200EF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillIndex
		{
			get
			{
				return this.skillIndex_;
			}
			set
			{
				this.skillIndex_ = value;
			}
		}

		// Token: 0x0600BECD RID: 48845 RVA: 0x00202D01 File Offset: 0x00200F01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneCastSkillCostMpCsReq);
		}

		// Token: 0x0600BECE RID: 48846 RVA: 0x00202D10 File Offset: 0x00200F10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneCastSkillCostMpCsReq other)
		{
			return other != null && (other == this || (this.CastEntityId == other.CastEntityId && this.AttackedByEntityId == other.AttackedByEntityId && this.SkillIndex == other.SkillIndex && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BECF RID: 48847 RVA: 0x00202D6C File Offset: 0x00200F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			if (this.AttackedByEntityId != 0U)
			{
				num ^= this.AttackedByEntityId.GetHashCode();
			}
			if (this.SkillIndex != 0U)
			{
				num ^= this.SkillIndex.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BED0 RID: 48848 RVA: 0x00202DDD File Offset: 0x00200FDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BED1 RID: 48849 RVA: 0x00202DE5 File Offset: 0x00200FE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BED2 RID: 48850 RVA: 0x00202DF0 File Offset: 0x00200FF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkillIndex != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.SkillIndex);
			}
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this.AttackedByEntityId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.AttackedByEntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BED3 RID: 48851 RVA: 0x00202E68 File Offset: 0x00201068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			if (this.AttackedByEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AttackedByEntityId);
			}
			if (this.SkillIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillIndex);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BED4 RID: 48852 RVA: 0x00202ED8 File Offset: 0x002010D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneCastSkillCostMpCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			if (other.AttackedByEntityId != 0U)
			{
				this.AttackedByEntityId = other.AttackedByEntityId;
			}
			if (other.SkillIndex != 0U)
			{
				this.SkillIndex = other.SkillIndex;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BED5 RID: 48853 RVA: 0x00202F3C File Offset: 0x0020113C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BED6 RID: 48854 RVA: 0x00202F48 File Offset: 0x00201148
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 80U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.AttackedByEntityId = input.ReadUInt32();
						}
					}
					else
					{
						this.CastEntityId = input.ReadUInt32();
					}
				}
				else
				{
					this.SkillIndex = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004CD0 RID: 19664
		private static readonly MessageParser<SceneCastSkillCostMpCsReq> _parser = new MessageParser<SceneCastSkillCostMpCsReq>(() => new SceneCastSkillCostMpCsReq());

		// Token: 0x04004CD1 RID: 19665
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004CD2 RID: 19666
		public const int CastEntityIdFieldNumber = 10;

		// Token: 0x04004CD3 RID: 19667
		private uint castEntityId_;

		// Token: 0x04004CD4 RID: 19668
		public const int AttackedByEntityIdFieldNumber = 13;

		// Token: 0x04004CD5 RID: 19669
		private uint attackedByEntityId_;

		// Token: 0x04004CD6 RID: 19670
		public const int SkillIndexFieldNumber = 7;

		// Token: 0x04004CD7 RID: 19671
		private uint skillIndex_;
	}
}
